using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace FutureOpen.Core.func.util
{
    public class ConfigUtil
    {
        public static string GetFreqDict()
        { 
            return ConfigurationManager.AppSettings["Path.FreqDict"];            
        }
       
        public static string GetConnectionStr()
        {
            return ConfigurationManager.AppSettings["Db.MySql"];
        }

        public static string GetIndexFolder()
        {
            return ConfigurationManager.AppSettings["Path.Index"];
        }

        public static string GetUsrIndex()
        {
            return GetIndexFolder() + "Usr\\";
        }
        public static string GetArtIndex()
        {
            return GetIndexFolder() + "Art\\";
        }
        
        public static string GetDictFolder() {
            return ConfigurationManager.AppSettings["Path.Dict"];
        }

        public static string GetDictPath()
        {
            return GetDictFolder() + "sDict.txt"; 
        }

        public static string GetStopwordPath()
        {
            return GetDictFolder() + "sNoise.txt";
        }


    }
}
